package com.aaa.dao.sds;
import com.aaa.entity.sds.TTestRecondSds;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * (TTestRecondSds)表数据库访问层
 * 
 * @author ZEH
 * @since 2022-11-07 12:53:46
 */
@Repository
public interface TTestRecondSdsMapper extends Mapper<TTestRecondSds>{

    /**
     *
     * @param username
     * @return
     */
    Integer selectridbyusername(String username);

    Integer selectpidByrid(String name);

    /**
     * 模糊查询
     * @param tTestRecondSds
     * @return
     */
    List<TTestRecondSds> selectLike(TTestRecondSds tTestRecondSds);






    boolean insertAll(TTestRecondSds tTestRecondSds);

//    String createby, String recond, String username, Integer rid, Integer pid, Date createtime
    /**
     * rid做题人id
     * @param username
     * @return
     */
    Integer selectpidbyrid(String username);


   Integer selectidByusername(String username);

   Integer selectusernameidByusername(Integer id);

}
